package com.parenting.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 商品信息表
 * </p>
 *
 * @author 烟台业达-王世玺
 * @since 2021-08-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("commodity")
@ApiModel(value="CommodityDO对象", description="商品信息表")
public class CommodityDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "店铺ID")
    private String shopId;

    @ApiModelProperty(value = "商品名称")
    private String commodityName;

    @ApiModelProperty(value = "货号")
    private String articleNumber;


    @ApiModelProperty(value = "关键词（最多五个关键词）")
    private String keywords;

    @ApiModelProperty(value = "商品描述")
    private String description;

    @ApiModelProperty(value = "商品价格(价格为整数 1代表一分钱)")
    private Integer price;

    @ApiModelProperty(value = "商品库存")
    private Integer stock;

    @ApiModelProperty(value = "库存量预警值")
    private String warning;

    @ApiModelProperty(value = "图片URL（多个地址逗号分隔）")
    private String imagesUrl;

    @ApiModelProperty(value = "视频URL")
    private String videoUrl;

    @ApiModelProperty(value = "是否上架（1上架，2下架）")
    private Integer shelves;

    @ApiModelProperty(value = "是否删除（1否，2是 默认 1）")
    private Integer commodityRemove;

    @ApiModelProperty(value = "是否审核（1审核通过，2审核不同意，3无需审核，4审核中）")
    private Integer examine;

    @ApiModelProperty(value = "商品详情")
    private String details;

    @ApiModelProperty(value = "乐观锁")
    @Version
    private Integer revision;

    @ApiModelProperty(value = "修改时间")
    private Date updateDate;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;


}
